<%@ page pageEncoding="UTF-8"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="isperp" uri="/WEB-INF/tlds/isperp.tld"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<div class="header">
	<h2>&nbsp;&nbsp;协议基本信息</h2>
</div>
<input type="hidden" id="id" value="${model.id }">
<table class=" form-table">
	<tbody>
		<tr style="display:none">
			<td class="td1">项目：</td>
			<td class="td2"><isperp:relationLabel
					moduleUrl="project/project" idValue="${model.projectId }"
					displayColumn="name" id="projectName"></isperp:relationLabel>
			</td>
		</tr>
		<tr>
			<td class="td1">名称：</td>
			<td class="td2">${model.name}</td>
		</tr>
		<tr>
			<td class="td1">类型：</td>
			<td class="td2">${model.slmType}</td>
		</tr>

		<tr>
			<td class="td1">服务响应：</td>
			<td class="td2"><script type="text/javascript">
				var use_project_calendar = "${model.useProjectCalendar}";
				if (use_project_calendar == "true" || use_project_calendar == 1) {
					document.write("项目日历");
				} else {
					document.write("7*24");
				}
			</script></td>
		</tr>
		<tr style="display:none">
			<td class="td1">服务方式：</td>
			<td class="td2">${model.serviceWay}</td>
		</tr>
		<tr>
			<td class="td1">合规性目标(%)：</td>
			<td class="td2">${model.goal}</td>
		</tr>
		<tr>
			<td class="td1">应用对象：</td>
			<td class="td2"><isperp:relationLabel moduleUrl="db/entity"
					idValue="${model.applyObject}" displayColumn="name"
					id="applyObjectName"></isperp:relationLabel>
			</td>
		</tr>
		<tr>
			<td class="td1">适应范围：</td>
			<td class="td2">${model.scopeSql}</td>
		</tr>
		<tr>
			<td class="td1">适应范围说明：</td>
			<td class="td2">${model.scopeDesc}</td>
		</tr>
	</tbody>
</table>

<div class="header">
	<h2>&nbsp;&nbsp;考核指标</h2>
</div>
<isperp:grid
	url="slm/serviceTarget/listByAgreement?agreementId=${model.id }"
	gridId="serviceTargetGrid" height="auto" showPager="false"
	showSearchbar="false" gridTitle="考核指标" showToolbar="false"
	beforeCreateAction="'agreementId='+document.getElementById('id').value"
	cusDialogWidth="500" cusDialogHeight="400">
	<jsp:body>
	<isperp:column name="id" title="id" hidden="true"></isperp:column>
	<isperp:column name="name" title="指标名称" width="80">
	</isperp:column>
	<isperp:column name="targetDa" title="起始状态" width="100">
	</isperp:column>
	<isperp:column name="targetDb" title="结束状态" width="100">
	</isperp:column>
	<isperp:column name="target" title="考核目标" width="100">
	</isperp:column>
	</jsp:body>
</isperp:grid>
<div class="header">
	<h2>&nbsp;&nbsp;自动提醒</h2>
</div>
<isperp:grid
	url="slm/alarmSetting/listByAgreement?agreementId=${model.id }"
	gridId="alarmSettingGrid" height="auto" showPager="false"
	showToolbar="false" showSearchbar="false" gridTitle="自动提醒"
	cusFormatterActions="true"
	beforeCreateAction="'agreementId='+document.getElementById('id').value;"
	cusDialogSize="normal">
	<jsp:body>
	<isperp:column name="id" title="id" hidden="true"></isperp:column>
	<isperp:column name="title" title="标题" width="150">
	</isperp:column>
	<isperp:column name="service_target_name" title="关联考核指标" width="100">
	</isperp:column>
	<isperp:column name="type" title="提醒类型" width="60">
	</isperp:column>
	<isperp:column name="description" title="时间(时:分)" width="100">
	</isperp:column>
	<isperp:column name="send_way" title="发送方式" width="80">
	</isperp:column>
	</jsp:body>


</isperp:grid>

<isperp:buttonList showCloseBtn="true">
</isperp:buttonList>